/* 公共页面样式 - 提取自 layouts/public_header.php */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0a0a1a;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

.nav {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.nav-logo-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    overflow: hidden;
}
.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-login {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}

.nav-login:hover {
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.page-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.section-content {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    line-height: 1.8;
}

.section-content h3 {
    color: white;
    font-size: 18px;
    margin: 24px 0 12px;
}

.section-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.section-content li {
    margin-bottom: 8px;
}

.section-content p {
    margin-bottom: 16px;
}

.code-block {
    background: #1e1e2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-block .comment { color: #6b7280; }
.code-block .keyword { color: #c084fc; }
.code-block .string { color: #86efac; }
.code-block .function { color: #93c5fd; }
.code-block .number { color: #fbbf24; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.info-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.5);
}

.info-card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.info-card-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.info-card-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.btn-group {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

.api-endpoint {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
}

.api-method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
}

.api-method.post { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.api-method.get { background: rgba(34, 197, 94, 0.2); color: #86efac; }

.api-path {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    color: white;
}

.api-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 8px;
}

.footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin: 0 8px;
}

.footer a:hover {
    color: white;
}

.table-wrap {
    overflow-x: auto;
    margin: 16px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

th {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

td {
    color: rgba(255,255,255,0.7);
}

code {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #93c5fd;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.badge-info { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .page-title { font-size: 32px; }
    .page-desc { font-size: 16px; }
    .container { padding: 40px 16px; }
    .content-section { padding: 24px 20px; }
}
