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

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #0f1d44;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gold: #f59e0b;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    transition: all var(--transition);
}

.navbar.scrolled .logo-icon {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    padding: 4px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    transition: color var(--transition);
}

.navbar.scrolled .logo-text { color: var(--gray-800); }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-400);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.navbar.scrolled .nav-links a { color: var(--gray-600); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--blue-600); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-phone {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.navbar.scrolled .nav-phone { color: var(--blue-600); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
}

.navbar.scrolled .menu-toggle span { background: var(--gray-800); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 40%, var(--blue-600) 100%);
    overflow: hidden;
}

.hero .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: #fff;
    color: var(--blue-700);
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-block { width: 100%; }

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.scroll-arrow {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0.3; }
}

/* ===== Animations ===== */
.fade-in { animation: fadeUp 0.8s ease both; }
.fade-in-delay { animation: fadeUp 0.8s 0.2s ease both; }
.fade-in-delay-2 { animation: fadeUp 0.8s 0.4s ease both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Section ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-600);
    background: var(--blue-50);
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-tag { margin-bottom: 12px; }

.about-text > p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat {
    text-align: center;
    padding: 16px 8px;
    border-radius: var(--radius);
    background: var(--blue-50);
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue-600);
}

.stat-unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-600);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 20px 40px rgba(0,0,0,0.12));
}

.about-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

.about-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.service-card {
    padding: 36px 28px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--blue-600);
    transition: all var(--transition);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card:hover .service-icon {
    background: var(--blue-600);
    color: #fff;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card > p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-card ul {
    padding-left: 0;
}

.service-card ul li {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--blue-400);
    border-radius: 50%;
}

/* ===== Portfolio ===== */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 24px;
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    background: transparent;
    color: var(--gray-500);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.tab:hover { border-color: var(--blue-400); color: var(--blue-600); }

.tab.active {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-600);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img { transform: scale(1.1); }

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.portfolio-item:hover .portfolio-info { transform: translateY(0); }

.portfolio-info h4 { font-size: 1rem; margin-bottom: 4px; }
.portfolio-info span { font-size: 0.8rem; opacity: 0.8; }

/* ===== Advantages ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-item {
    padding: 36px 28px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: all var(--transition);
}

.advantage-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.advantage-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue-50);
    line-height: 1;
    margin-bottom: 12px;
}

.advantage-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.advantage-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Testimonials ===== */
.testimonials-section {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    color: #fff;
}

.testimonials-section .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.testimonials-section .section-title { color: #fff; }

.testimonials-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    min-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.testimonial-item > p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.testimonial-author h5 { font-size: 0.95rem; text-align: left; }
.testimonial-author span { font-size: 0.8rem; opacity: 0.7; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--blue-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; color: var(--gray-500); }

.contact-form {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--gray-800);
    outline: none;
    transition: all var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue-500);
    background: #fff;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 0.95rem;
    color: var(--gray-400);
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--blue-600);
    background: #fff;
    padding: 0 4px;
}

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

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-icon { width: 36px; height: 36px; }
.footer-brand .logo-text { color: #fff; font-size: 1.1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-links h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul li { margin-bottom: 8px; }

.footer-links ul a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links ul a:hover { color: var(--blue-400); }

.footer-qr h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: var(--gray-800);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--gray-500);
}

.qr-placeholder svg { width: 48px; height: 48px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    font-size: 0.8rem;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--blue-600);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    z-index: 999;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--blue-700); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--gray-900);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right var(--transition);
    }

    .nav-links.open { right: 0; }
    .nav-links a { color: #fff !important; font-size: 1.1rem; }
    .nav-phone { display: none; }
    .menu-toggle { display: flex; }

    .services-grid,
    .advantages-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .about-image { height: 260px; }
    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; }
}
