/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式设置 */
:root {
    --primary-color: #3AAFA9;
    --primary-dark: #2B7A78;
    --primary-light: #6ECECA;
    --accent-color: #FF6B6B;
    --text-dark: #17252A;
    --text-light: #DEF2F1;
    --background-color: #F5F5F5;
    --card-color: #FFFFFF;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.4s ease;
}

body {
    font-family: "思源黑体", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(58, 175, 169, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(58, 175, 169, 0.07) 0%, transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(58, 175, 169, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 90%, rgba(58, 175, 169, 0.07) 0%, transparent 20%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 175, 169, 0.03) 0%, transparent 100%);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* 波浪形状分隔符 */
.wave-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23F5F5F5" opacity="0.8"/></svg>');
    background-size: cover;
    z-index: 1;
}

/* 头部导航区域样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition-medium);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    left: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    max-width: 250px;
}

.search-box:focus-within {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05), 0 0 0 2px var(--primary-light);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 5px;
    flex-grow: 1;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: var(--transition-fast);
}

.search-box button:hover {
    color: var(--primary-color);
}

.user-area {
    display: flex;
    align-items: center;
}

.user-area a {
    margin-left: 15px;
    font-size: 14px;
}

.login-btn, .register-btn {
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.login-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.register-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(58, 175, 169, 0.3);
}

.login-btn:hover {
    background-color: rgba(58, 175, 169, 0.05);
    transform: translateY(-2px);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 175, 169, 0.4);
}

.user-center {
    display: none; /* 默认隐藏，登录后显示 */
}

.user-center i {
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

/* 主要内容区域样式 */
.main-content {
    padding: 30px 0;
    position: relative;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #36D1DC, #5B86E5);
    color: white;
    text-align: center;
    margin-bottom: 60px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 工具卡片网格布局 */
.tools-section {
    position: relative;
    padding-bottom: 40px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 工具卡片样式 */
.tool-card {
    background-color: var(--card-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border-left: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    cursor: pointer;
}

.tool-video .placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tool-video:hover .placeholder-img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: linear-gradient(135deg, rgba(58, 175, 169, 0.8), rgba(43, 122, 120, 0.8));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.play-button i {
    font-size: 32px;
}

.tool-video:hover .play-button {
    opacity: 1;
}

.tool-name {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.tool-name::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.tool-card:hover .tool-name::after {
    width: 50px;
}

.tool-scene {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: auto;
}

.tool-actions {
    display: flex;
    padding: 0 20px 20px;
    margin-top: auto;
}

.buy-btn, .use-btn {
    padding: 10px 0;
    text-align: center;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    transition: var(--transition-fast);
}

.buy-btn {
    background-color: #f1f3f4;
    color: var(--text-dark);
    margin-right: 10px;
    position: relative;
    overflow: hidden;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 175, 169, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.buy-btn:hover::before {
    transform: translateX(0);
}

.use-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(58, 175, 169, 0.3);
    position: relative;
    overflow: hidden;
}

.use-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.use-btn:hover::after {
    transform: translateX(0);
}

.buy-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
}

.use-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(58, 175, 169, 0.4);
}

/* 页脚区域样式 */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    margin-top: 100px;
}

.footer-shape {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" fill="%233AAFA9"/></svg>');
    background-size: cover;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
}

.footer-links a {
    margin-left: 20px;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .search-box {
        flex: 1;
        max-width: none;
        margin: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-btn, .register-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 背景装饰元素 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    top: -100px;
    right: 10%;
    filter: blur(30px);
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    bottom: -200px;
    left: -100px;
    filter: blur(60px);
    opacity: 0.05;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--accent-color), #FFA5A5);
    top: 40%;
    right: -50px;
    filter: blur(40px);
    opacity: 0.05;
}

.bg-shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%233AAFA9" d="M47.5,-61.2C59.3,-53.9,65.6,-37.8,67.4,-22.3C69.3,-6.8,66.8,8.1,62.7,23.1C58.6,38.1,52.8,53.3,41.8,62.3C30.8,71.3,15.4,74.2,1.6,72C-12.2,69.8,-24.5,62.7,-38,54.1C-51.6,45.5,-66.5,35.4,-73.5,20.9C-80.4,6.4,-79.3,-12.6,-73,-30.1C-66.6,-47.7,-55.1,-63.9,-40.4,-69.9C-25.8,-75.9,-7.9,-71.6,8.7,-67.2C25.3,-62.8,35.6,-68.4,47.5,-61.2Z" transform="translate(100 100)"/></svg>');
    background-size: contain;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: floatShape 25s infinite alternate ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%233AAFA9" d="M33.6,-50.1C44.9,-41.9,56.2,-34.3,62.1,-23.2C68,-12.1,68.3,2.5,64.7,16.2C61.1,29.9,53.5,42.8,42.3,50.8C31.1,58.8,15.5,61.9,0.5,61.2C-14.6,60.5,-29.3,56,-40.4,47C-51.6,38,-59.3,24.6,-64.1,9.3C-68.9,-6,-70.9,-23.3,-63.8,-34.8C-56.6,-46.3,-40.3,-52.1,-26.4,-59.1C-12.5,-66.1,-0.9,-74.3,7,-70.3C14.9,-66.3,22.3,-58.2,33.6,-50.1Z" transform="translate(100 100)"/></svg>');
    background-size: contain;
    bottom: 10%;
    right: 5%;
    transform: rotate(-30deg);
    animation: floatShape 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0);
    }
    100% {
        transform: translate(20px, 20px) rotate(10deg);
    }
} 