/* 
 * 开户网站 - 主样式表
 * Mobile-First Responsive Design
 * Optimized for Yandex & Bing SEO
 */

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

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", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* ========== Utility Classes ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: #1a73e8;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #34a853);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1557b0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a73e8;
    color: #1a73e8;
}

.btn-outline:hover {
    background: #1a73e8;
    color: #fff;
}

/* ========== Header & Navigation ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a73e8;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a73e8, #34a853);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.nav-menu {
    display: none;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.nav-menu li {
    text-align: center;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a73e8;
    background: #f5f9ff;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero Banner ========== */
.hero {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #1a73e8;
}

.hero-slide.active {
    display: block;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.9), rgba(52, 168, 83, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 80px 20px;
}

.hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    margin: 5px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ========== About Section ========== */
.about {
    background: #f8fafc;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #1a73e8;
    margin-bottom: 15px;
}

.about-text p {
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a73e8;
    display: block;
}

.stat-number span {
    font-size: 1rem;
    color: #34a853;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* ========== Advantages Section ========== */
.advantages {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
}

.advantages .section-title h2 {
    color: #fff;
}

.advantages .section-title h2::after {
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.5));
}

.advantages .section-title p {
    color: rgba(255,255,255,0.85);
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.advantage-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.advantage-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========== Products Section ========== */
.products {
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #1a73e8;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.product-link {
    display: inline-block;
    margin-top: 15px;
    color: #1a73e8;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-link:hover {
    color: #0d47a1;
}

/* ========== Cases Section ========== */
.cases {
    background: #f8fafc;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.case-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.case-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
}

.case-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.case-content p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========== News Section ========== */
.news {
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.85rem;
    color: #1a73e8;
    margin-bottom: 8px;
}

.news-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a:hover {
    color: #1a73e8;
}

.news-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 30px;
}

/* ========== Partners Section ========== */
.partners {
    background: #f8fafc;
    padding: 40px 0;
}

.partners-title {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: center;
}

.partner-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ========== Footer ========== */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1a73e8;
}

.footer-col p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #1a73e8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #aaa;
    font-size: 0.9rem;
}

.contact-icon {
    width: 20px;
    text-align: center;
    color: #1a73e8;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #888;
}

.footer-bottom a:hover {
    color: #1a73e8;
}

/* ========== Page Banner ========== */
.page-banner {
    margin-top: 70px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: #fff;
}

/* ========== About Page ========== */
.about-detail {
    padding: 50px 0;
}

.about-intro {
    margin-bottom: 50px;
}

.about-intro h2 {
    font-size: 1.5rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

.about-intro p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #1a73e8, #34a853);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #1a73e8;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #1a73e8;
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 8px;
}

.timeline-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== Products Page ========== */
.products-detail {
    padding: 50px 0;
}

.product-category {
    margin-bottom: 50px;
}

.product-category h2 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a73e8;
}

/* ========== News Page ========== */
.news-list {
    padding: 50px 0;
}

.news-list-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #1a73e8;
}

.news-list-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.news-list-content h3 a:hover {
    color: #1a73e8;
}

.news-list-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-list-date {
    color: #999;
    font-size: 0.85rem;
}

/* ========== News Detail Page ========== */
.news-detail {
    padding: 50px 0;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-meta {
    color: #999;
    font-size: 0.9rem;
}

.news-meta span {
    margin: 0 10px;
}

.news-detail-content {
    color: #555;
    line-height: 1.9;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-content h2 {
    font-size: 1.3rem;
    color: #333;
    margin: 30px 0 15px;
}

.news-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-nav a {
    color: #666;
    font-size: 0.9rem;
}

.news-nav a:hover {
    color: #1a73e8;
}

/* ========== Contact Page ========== */
.contact-section {
    padding: 50px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
}

.contact-info-box h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1a73e8, #34a853);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: #666;
    font-size: 0.9rem;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 3px 15px rgba(26, 115, 232, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0d47a1;
    transform: translateY(-3px);
}

/* ========== Responsive - Tablet ========== */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu li {
        margin-left: 5px;
    }

    .nav-menu a {
        padding: 8px 15px;
        border-radius: 4px;
    }

    .menu-toggle {
        display: none;
    }

    .hero-slide {
        min-height: 500px;
    }

    .hero-content {
        padding: 120px 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content {
        flex-direction: row;
        align-items: center;
    }

    .about-text {
        flex: 1;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-list-item {
        flex-direction: row;
    }

    .news-list-image {
        width: 280px;
        height: 160px;
        flex-shrink: 0;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========== Responsive - Desktop ========== */
@media (min-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero-slide {
        min-height: 600px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .page-banner {
        padding: 80px 20px;
    }

    .page-banner h1 {
        font-size: 2.5rem;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ========== Print Styles ========== */
@media print {
    .header,
    .footer,
    .back-to-top {
        display: none;
    }

    .hero {
        margin-top: 0;
    }

    body {
        font-size: 12pt;
    }
}
