/* css/style.css */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #8b5cf6;
    --accent: #0ea5e9;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

/* 导航栏样式 */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    font-size: 1.05rem;
}

.nav-links a:hover {
    color: var(--primary);
}

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

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

/* Hero区域样式 */
.hero {
    background: linear-gradient(135deg, var(--darker), #1e3a8a);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(66, 153, 225, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 20%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin: 0 auto 40px;
    opacity: 0.9;
    max-width: 700px;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    animation: fadeInUp 1s ease 0.4s forwards;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
    background: var(--primary-dark);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 作品分类样式 */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--darker);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* 系列部分样式修正 */
.series-section {
    margin-bottom: 60px;
    width: 100%;
}

.series-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    width: 100%;
}

.series-title h3 {
    font-size: 1.8rem;
    color: var(--darker);
    margin: 0;
}

.series-title .tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
    font-size: 1rem;
    padding: 8px 18px;
}

/* 作品卡片样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--light-gray);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--darker);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag.android {
    background: rgba(52, 211, 153, 0.1);
    color: #10b981;
}

.tag.pc {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.tag.ai {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.tag.other {
    background: rgb(220 236 72 / 0.1);
    color: #d0b950;
}

.tag.console {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

.tag.web {
    background: rgba(69, 164, 237, 0.1);
    color: #39baf2;
}

.card-body {
    padding: 20px 25px;
    flex-grow: 1;
}

.card-body p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-footer {
    padding: 0 25px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.github-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.github-link:hover {
    color: var(--primary);
}

.github-link i {
    font-size: 1.2rem;
}

/* 页脚样式 */
footer {
    background: var(--darker);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-content p {
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition);
}

.contact-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    opacity: 0.6;
    font-size: 0.95rem;
    margin-top: 30px;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 10px 10px;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .series-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 12px 28px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .card-header, .card-body, .card-footer {
        padding: 20px;
    }
}