/* style.css - zoty中欧官方网站 */
/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: #f8f9fa;
    color: #222;
    line-height: 1.7;
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #1a3a5c;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #2b5f8a;
}

/* 毛玻璃效果通用 */
.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 头部 */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a3a5c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 36px;
    height: 36px;
    transition: transform 0.3s;
}

.logo:hover svg {
    transform: rotate(10deg) scale(1.05);
}

.nav {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
}

.nav a {
    color: #333;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a3a5c;
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    border-bottom-color: transparent;
    color: #1a3a5c;
}

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

.hamburger span {
    width: 28px;
    height: 3px;
    background: #1a3a5c;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-box input {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    width: 180px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    border-color: #1a3a5c;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.search-box button {
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
}

.search-box button:hover {
    background: #2b5f8a;
    transform: scale(1.05);
}

/* Hero 区域 - 渐变Banner */
.hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2b5f8a 50%, #3a7bd5 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: heroGlow 10s linear infinite;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
    100% { transform: translate(0, 0); }
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn {
    display: inline-block;
    background: #ffb347;
    color: #1a3a5c;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero .btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #ffa726;
}

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

.hero-slider span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-slider span:hover {
    transform: scale(1.3);
}

.hero-slider span.active {
    background: #ffb347;
    transform: scale(1.2);
}

/* 容器与标题 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #ffb347;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.6s;
}

.section-title:hover::after {
    width: 100px;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
}

/* 圆角卡片 - 毛玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.card h3 {
    font-size: 1.2rem;
    color: #1a3a5c;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.card:hover h3 {
    color: #2b5f8a;
}

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

.card .read-more {
    display: inline-block;
    margin-top: 12px;
    color: #1a3a5c;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
}

.card .read-more:hover {
    color: #2b5f8a;
    transform: translateX(4px);
}

/* About 区域 */
.about-section {
    background: #fff;
    padding: 60px 20px;
    transition: background 0.3s;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: #1a3a5c;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.about-text p {
    margin-bottom: 16px;
    color: #444;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.about-text .info-list {
    list-style: none;
    margin-top: 20px;
}

.about-text .info-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #333;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.5s ease forwards;
}

.about-text .info-list li:nth-child(1) { animation-delay: 0.3s; }
.about-text .info-list li:nth-child(2) { animation-delay: 0.4s; }
.about-text .info-list li:nth-child(3) { animation-delay: 0.5s; }
.about-text .info-list li:nth-child(4) { animation-delay: 0.6s; }
.about-text .info-list li:nth-child(5) { animation-delay: 0.7s; }
.about-text .info-list li:nth-child(6) { animation-delay: 0.8s; }
.about-text .info-list li:nth-child(7) { animation-delay: 0.9s; }

.about-text .info-list li strong {
    min-width: 80px;
    color: #1a3a5c;
}

/* FAQ 区域 */
.faq-section {
    background: #f1f4f8;
    padding: 60px 20px;
    transition: background 0.3s;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 16px 0;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1a3a5c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question .icon {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.faq-answer {
    padding-top: 12px;
    color: #444;
    font-size: 0.95rem;
    display: none;
    line-height: 1.8;
    animation: fadeIn 0.4s ease;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

/* HowTo 区域 */
.howto-section {
    background: #fff;
    padding: 60px 20px;
    transition: background 0.3s;
}

.howto-steps {
    max-width: 800px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.5s ease forwards;
}

.howto-step:nth-child(1) { animation-delay: 0.1s; }
.howto-step:nth-child(2) { animation-delay: 0.2s; }
.howto-step:nth-child(3) { animation-delay: 0.3s; }
.howto-step:nth-child(4) { animation-delay: 0.4s; }
.howto-step:nth-child(5) { animation-delay: 0.5s; }
.howto-step:nth-child(6) { animation-delay: 0.6s; }

.howto-step .num {
    background: #1a3a5c;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.3s;
}

.howto-step:hover .num {
    transform: scale(1.1);
    background: #2b5f8a;
}

.howto-step .content h4 {
    font-size: 1.1rem;
    color: #1a3a5c;
    margin-bottom: 4px;
}

.howto-step .content p {
    color: #555;
    font-size: 0.95rem;
}

/* 文章区域 */
.articles-section {
    background: #f1f4f8;
    padding: 60px 20px;
    transition: background 0.3s;
}

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.article-card .meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.article-card .summary {
    color: #555;
    font-size: 0.9rem;
}

/* 新闻区域 */
.news-section {
    background: #fff;
    padding: 60px 20px;
    transition: background 0.3s;
}

.news-list {
    list-style: none;
}

.news-list li {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, padding-left 0.3s;
    cursor: pointer;
}

.news-list li:hover {
    background: rgba(26, 58, 92, 0.03);
    padding-left: 8px;
}

.news-list li .date {
    color: #888;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-left: 20px;
}

/* 评价区域 */
.testimonials-section {
    background: #f1f4f8;
    padding: 60px 20px;
    transition: background 0.3s;
}

.testimonial-card {
    text-align: center;
    padding: 30px 20px;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: #1a3a5c;
}

/* 联系区域 */
.contact-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #2b5f8a 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.contact-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-section p {
    margin-bottom: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

.contact-section .btn {
    background: #ffb347;
    color: #1a3a5c;
    padding: 12px 30px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.contact-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #ffa726;
}

/* 页脚 */
.footer {
    background: #111;
    color: #aaa;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.footer a {
    color: #aaa;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s, transform 0.2s;
}

.footer a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 30px;
    font-size: 0.85rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a3a5c;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    border: none;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    background: #2b5f8a;
}

/* 暗黑模式切换按钮 */
.dark-mode-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: #333;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.2rem;
    z-index: 999;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    transform: rotate(20deg);
    background: #555;
}

/* 暗黑模式 */
body.dark {
    background: #1a1a2e;
    color: #eee;
}

body.dark header {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(51, 51, 51, 0.5);
}

body.dark .card {
    background: rgba(30, 42, 69, 0.7);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

body.dark .card:hover {
    background: rgba(30, 42, 69, 0.9);
}

body.dark .card h3,
body.dark .about-text h2,
body.dark .section-title {
    color: #e0e0e0;
}

body.dark .about-section,
body.dark .howto-section,
body.dark .news-section {
    background: #16213e;
}

body.dark .faq-section,
body.dark .articles-section,
body.dark .testimonials-section {
    background: #1a1a2e;
}

body.dark .faq-item {
    border-bottom-color: #333;
}

body.dark .faq-question {
    color: #ccc;
}

body.dark .hero {
    background: linear-gradient(135deg, #0f3460 0%, #1a3a5c 50%, #16213e 100%);
}

body.dark .contact-section {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

body.dark .nav a {
    color: #ccc;
}

body.dark .nav a:hover {
    color: #fff;
}

body.dark .search-box input {
    background: #1e2a45;
    border-color: #444;
    color: #eee;
}

body.dark .search-box input:focus {
    border-color: #ffb347;
}

body.dark .search-box button {
    background: #ffb347;
    color: #1a3a5c;
}

body.dark .logo {
    color: #e0e0e0;
}

body.dark .hamburger span {
    background: #e0e0e0;
}

body.dark .footer a {
    color: #888;
}

body.dark .footer a:hover {
    color: #fff;
}

body.dark .about-text p,
body.dark .about-text .info-list li {
    color: #ccc;
}

body.dark .card p {
    color: #bbb;
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
    }

    .nav.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .search-box input {
        width: 120px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .news-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-list li .date {
        margin-left: 0;
        margin-top: 4px;
    }

    .card {
        padding: 20px;
    }

    .back-to-top,
    .dark-mode-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        right: 20px;
    }

    .dark-mode-toggle {
        bottom: 75px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .container {
        padding: 20px 12px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer a {
        display: inline-block;
        margin: 4px 8px;
    }
}

/* 打印样式 */
@media print {
    header,
    .back-to-top,
    .dark-mode-toggle,
    .hero-slider {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}