/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面过渡效果 */
.page-transition * {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* 公告区域样式 */
.announcement-bar {
    background: linear-gradient(135deg, #4e50ff, #6c6cff);
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1001;
}

.announcement-bar.info {
    background: linear-gradient(135deg, #4e50ff, #6c6cff);
}

.announcement-bar.warning {
    background: linear-gradient(135deg, #ff9800, #ffc107);
}

.announcement-bar.error {
    background: linear-gradient(135deg, #f44336, #e91e63);
}

.announcement-bar.success {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-icon {
    font-size: 18px;
}

.announcement-title {
    font-weight: bold;
    margin-right: 5px;
}

.announcement-text {
    font-size: 14px;
}

.announcement-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 公告弹窗样式 */
#announcement-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

#announcement-modal:not(.hidden) {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#announcement-modal.hidden {
    display: none !important;
}

.modal.announcement-modal .modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.3s ease;
}

.modal.announcement-modal .announcement-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.modal.announcement-modal .announcement-content {
    margin-bottom: 20px;
}

.modal.announcement-modal .announcement-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.modal.announcement-modal .announcement-features {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.modal.announcement-modal .announcement-features h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4e50ff;
}

.modal.announcement-modal .announcement-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal.announcement-modal .announcement-features li {
    padding: 5px 0;
    color: #666;
}

.modal.announcement-modal .announcement-features li:before {
    content: "✓";
    color: #4e50ff;
    font-weight: bold;
    margin-right: 8px;
}

.modal.announcement-modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal.announcement-modal .close:hover {
    color: #333;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #4e50ff, #6c6cff);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 80, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(78, 80, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.95);
}

.btn-secondary {
    background: transparent;
    color: #4e50ff;
    border: 2px solid #4e50ff;
    box-shadow: 0 4px 15px rgba(78, 80, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(78, 80, 255, 0.1);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 18px rgba(78, 80, 255, 0.2);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn-download {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-download:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-download:active {
    transform: translateY(0) scale(0.95);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #4e50ff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.logo:hover img {
    transform: rotate(10deg);
}

.logo span {
    display: inline-block;
    background: linear-gradient(135deg, #4e50ff, #6c6cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
    font-size: 28px;
    box-sizing: border-box;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 30px;
    position: relative;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 15px;
    position: relative;
    box-sizing: border-box;
    margin: 0;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4e50ff;
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

.nav-menu ul li a:hover {
    color: #4e50ff;
    transform: translateY(-2px);
    box-sizing: border-box;
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* 汉堡菜单按钮样式 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #4e50ff;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    margin: 0;
    width: auto;
    height: auto;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-sizing: border-box;
}

.menu-toggle .close-icon {
    display: none;
}

.menu-toggle.active .menu-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: inline;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(20deg);
    box-sizing: border-box;
}

/* 主视觉区域 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7ff, #e6e9ff);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(78, 80, 255, 0.1);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    bottom: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    animation: slideInLeft 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: slideInLeft 1s ease 0.4s both;
}

.hero-image {
    flex: 1;
    text-align: center;
    animation: bounceIn 1s ease 0.6s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-image img:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

/* 功能特色 */
.features {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4e50ff;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4e50ff, #6c6cff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #4e50ff;
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    transform: scale(1.05);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 下载区域 */
.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #4e50ff, #6c6cff);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -200px;
    right: -200px;
}

.download-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -150px;
    left: -150px;
}

.download-section h2 {
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    min-width: 250px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.download-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b35, #ff8c5a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.download-card:hover::before {
    transform: scaleX(1);
}

.download-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.download-card:hover h3 {
    transform: scale(1.05);
}

.download-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo span {
    display: inline-block;
    font-weight: 800;
    font-size: 28px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 彩蛋样式 */
.egg-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(78, 80, 255, 0.9);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    70% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 验证码模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: slideInDown 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
    transform: rotate(90deg);
}

#captcha-container {
    margin: 20px 0;
    text-align: center;
}

.captcha-item {
    margin: 15px 0;
}

.captcha-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.captcha-input:focus {
    border-color: #4e50ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 80, 255, 0.1);
}

#captcha-submit {
    width: 100%;
    margin-top: 20px;
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}