/* ========================================
   圣淘沙游戏客服中心 - SEO优化样式表
   百度SEO要点：内联关键CSS、减少重排、语义化类名
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a56db;
    --primary-dark: #1042a3;
    --primary-light: #e8f0fe;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --success: #10b981;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all .3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--bg-dark);
    color: #9ca3af;
    font-size: .85rem;
    padding: 8px 0;
    text-align: center;
}
.top-bar span { display: inline-block; }

/* --- Header --- */
.header {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
}
.logo-text h1 {
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1.2;
}
.logo-text small {
    font-size: .7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Navigation --- */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}
.main-nav a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--text);
    font-weight: 500;
}
.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.header-phone .phone-link {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}
.header-phone .phone-link:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: var(--bg-gray);
    padding: 10px 0;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* --- Hero Banner --- */
.hero-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 50%, #3b82f6 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}
.hero-subtitle {
    font-size: 1.15rem;
    opacity: .9;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245,158,11,.4);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: .85rem;
    opacity: .8;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
}
.service-card p {
    color: var(--text-light);
    font-size: .95rem;
    margin-bottom: 16px;
}
.service-link {
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
}
.service-link:hover { color: var(--primary-dark); }

/* --- Team Section --- */
.team-section {
    padding: 80px 0;
}
.team-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.team-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.team-photo img {
    width: 100%;
    height: auto;
}
.team-photo figcaption {
    background: var(--bg);
    padding: 12px 16px;
    font-size: .9rem;
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid var(--border);
}

.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.member-card {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}
.member-card:hover {
    background: var(--primary-light);
}
.member-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow);
}
.member-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.member-title {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: .75rem;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.member-card p {
    font-size: .82rem;
    color: var(--text-light);
}

/* --- Environment Section --- */
.environment-section {
    padding: 80px 0;
    background: var(--bg-gray);
}
.env-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.env-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.env-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}
.env-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.env-item figcaption {
    background: var(--bg);
    padding: 14px 20px;
    font-size: .9rem;
    color: var(--text-light);
    text-align: center;
}

/* --- Process Section --- */
.process-section {
    padding: 80px 0;
}
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.step {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    min-width: 180px;
    flex: 1;
    max-width: 220px;
    transition: var(--transition);
}
.step:hover {
    background: var(--primary);
    color: #fff;
}
.step:hover h4,
.step:hover p {
    color: #fff;
}
.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 12px;
}
.step:hover .step-number {
    background: #fff;
    color: var(--primary);
}
.step h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}
.step p {
    font-size: .85rem;
    color: var(--text-light);
}
.step-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background: var(--bg-gray);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-item summary {
    padding: 18px 24px;
    cursor: pointer;
    font-size: 1rem;
    list-style: none;
    position: relative;
    padding-right: 50px;
    transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
    transition: var(--transition);
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-item summary:hover {
    background: var(--primary-light);
}
.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.8;
}

/* --- Trust Section --- */
.trust-section {
    padding: 60px 0;
    background: var(--bg-dark);
    color: #fff;
}
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.badge h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.badge p {
    font-size: .85rem;
    color: #9ca3af;
}

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: #9ca3af;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 8px;
    font-size: .9rem;
}
.footer-col a {
    color: #9ca3af;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: .82rem;
}
.footer-bottom a {
    color: #6b7280;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    .main-nav { order: 3; width: 100%; overflow-x: auto; }
    .main-nav ul { gap: 4px; }
    .main-nav a { padding: 6px 12px; font-size: .85rem; }
    .header-phone .phone-link { padding: 8px 14px; font-size: .85rem; }
    
    .hero-banner { padding: 50px 0; }
    .hero-banner h2 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    
    .services-grid { grid-template-columns: 1fr; }
    .team-showcase { grid-template-columns: 1fr; }
    .team-members { grid-template-columns: 1fr 1fr; }
    .env-gallery { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .trust-badges { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .section-header h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-banner h2 { font-size: 1.3rem; }
    .btn { padding: 12px 24px; font-size: .9rem; }
    .team-members { grid-template-columns: 1fr; }
    .trust-badges { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- SEO: 隐藏但屏幕阅读器可访问 --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- Print Styles --- */
@media print {
    .header, .footer, .top-bar, .hero-actions { display: none; }
    body { color: #000; }
    a { color: #000; text-decoration: underline; }
}
