* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b0000;
    --primary-dark: #6d0000;
    --primary-light: #c72c2c;
    --bg-color: #f9f5ea;
    --text-color: #333;
    --secondary-color: #e0d5c5;
    --accent-color: #f5d0a9;
    --white: #fff;
    --black: #000;
    --card-bg: #f5f0e5;
    --footer-bg: #f2efe6;
}

body {
    font-family: 'Microsoft YaHei', '宋体', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill-opacity="0.03" fill="%23000" width="50" height="50" x="0" y="0" /><rect fill-opacity="0.03" fill="%23000" width="50" height="50" x="50" y="50" /></svg>');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Decorative Elements */
.decorative-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 20px auto;
    opacity: 0.6;
}

.chinese-symbol {
    display: inline-block;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.4;
    margin: 0 10px;
}

/* Navigation */
.navbar {
    background-color: rgba(139, 0, 0, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 100 100"><text x="50" y="50" font-size="80" text-anchor="middle" dominant-baseline="middle" fill-opacity="0.05" fill="%23fff">☯</text></svg>');
    background-size: 200px;
    opacity: 0.3;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.hero-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover::before {
    transform: translateX(100%);
}

.main-content {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin: 40px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color), var(--primary-dark));
}

.description {
    margin-bottom: 60px;
    font-size: 1.1rem;
    text-align: justify;
    padding: 0 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.description p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title::before, .section-title::after {
    content: "❖";
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.6;
    margin: 0 15px;
    position: relative;
    top: -5px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px 0;
    padding: 0 40px;
}

.feature {
    flex-basis: 30%;
    margin-bottom: 30px;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.feature:hover::before {
    opacity: 1;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.feature h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.feature p {
    color: var(--text-color);
    line-height: 1.7;
}

.section {
    margin-bottom: 60px;
    padding: 0 40px;
    text-align: center;
}

.version {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    border-left: 3px solid var(--primary-color);
}

.version p {
    font-size: 1.1rem;
}

.version strong {
    color: var(--primary-color);
}

footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color), var(--primary-dark));
}

.contact {
    margin-top: 20px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    display: inline-block;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
}

.contact p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    transform: skewX(-25deg) translateX(100%);
}

/* Privacy and Agreement Pages */
.privacy-content, .agreement-content {
    padding: 20px 40px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.privacy-content h2, .agreement-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--secondary-color);
    font-size: 1.6rem;
}

.privacy-content p, .agreement-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

.back-btn {
    margin-top: 30px;
    display: inline-block;
}

/* ICP Information */
.empty-box {
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    width: 90%;
    max-width: 320px;
    margin: 60px auto 0;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icp-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.icp-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
    .feature {
        flex-basis: 48%;
    }
}

@media (max-width: 768px) {
    .feature {
        flex-basis: 100%;
    }
    
    .features {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .description, .section {
        padding: 0 20px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
} 