* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 4px var(--card-shadow);
    gap: 2rem;
}

.nav-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-brand a.logo {
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.e-letter {
    color: transparent;
    background: linear-gradient(to right,
        #7eb9ff,  /* 浅蓝色 */
        #ff9e9e,  /* 浅红色 */
        #ffe066,  /* 浅黄色 */
        #98e2a6   /* 浅绿色 */
    );
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 32px;
    font-weight: 900;
    margin-right: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: auto;
}

.nav-item {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--accent-color);
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.login-btn, .register-btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
}

.login-btn {
    color: var(--accent-color);
    border: 1px solid var(--button-border);
}

.register-btn {
    color: var(--button-text);
    background-color: var(--accent-color);
    border: 1px solid var(--button-border);
}

.hero {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 0 1rem;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-out;
}

.hero-slide.active h1 {
    transform: translateY(0);
    opacity: 1;
}

.hero-slide p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-out 0.2s;
}

.hero-slide.active p {
    transform: translateY(0);
    opacity: 1;
}

.hero-slide .cta-button {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-out 0.4s;
}

.hero-slide.active .cta-button {
    transform: translateY(0);
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    opacity: 0.3;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--accent-color);
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .hero-slide p {
        font-size: 1.1rem;
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--accent-hover);
}

.footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.friend-links a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: var(--link-color);
}

.copyright {
    color: var(--footer-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.beian-info {
    font-size: 0.9rem;
}

.beian-info a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

.beian-info a:hover {
    color: var(--link-color);
}

.beian-separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

.police-beian {
    color: var(--text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ssl-intro {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.ssl-intro h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.ssl-intro > .container > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 联系方式样式 */
.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--footer-text);
}

.contact-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.contact-icon.wechat {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>');
}

.contact-icon.email {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

/* 响应式调整 */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .ssl-intro {
        padding: 2rem 0;
    }
    
    .ssl-intro h2 {
        font-size: 1.8rem;
    }
}

/* 证书类型样式 */
.certificate-types {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.certificate-types h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.cert-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-type-item {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cert-type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--card-hover-shadow);
}

.cert-type-header {
    padding: 1.5rem;
    background: var(--accent-color);
    color: var(--button-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-type-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.cert-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cert-badge.public {
    background: rgba(255,255,255,0.2);
}

.cert-badge.private {
    background: rgba(255,255,255,0.2);
}

.cert-content {
    padding: 1.5rem;
}

.cert-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cert-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.cert-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.cert-features li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cert-usage {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.cert-usage h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cert-usage p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .certificate-types {
        padding: 2rem 0;
    }
    
    .cert-type-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-type-header {
        padding: 1rem;
    }
    
    .cert-type-header h3 {
        font-size: 1.2rem;
    }
    
    .cert-content {
        padding: 1rem;
    }
}

/* 证书产品展示样式 */
.cert-products {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.cert-products h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-category {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
}

.category-title {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.product-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-item {
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px var(--card-hover-shadow);
}

.product-header {
    background: var(--bg-secondary);
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.product-header h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--bg-secondary);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-info {
    padding: 1.2rem;
}

.product-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0.5rem;
    font-weight: bold;
}

.product-note {
    background: var(--bg-secondary);
    padding: 0.8rem;
    border-radius: 6px;
}

.product-note p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cert-products {
        padding: 2rem 0;
    }
    
    .product-category {
        padding: 1.5rem;
    }
    
    .product-items {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
}

/* 添加暗色模式变量和主题切换样式 */
:root {
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e9ecef;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --card-shadow: rgba(0,0,0,0.05);
    --card-hover-shadow: rgba(0,0,0,0.1);
    --header-bg: #fff;
    --button-text: #fff;
    --button-border: #007bff;
    --link-color: #007bff;
    --footer-text: #666;
    --footer-link: #666;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #fff;
    --text-secondary: #aaa;
    --border-color: #404040;
    --accent-color: #4d9fff;
    --accent-hover: #2d7fff;
    --card-shadow: rgba(0,0,0,0.2);
    --card-hover-shadow: rgba(0,0,0,0.3);
    --header-bg: #1a1a1a;
    --button-text: #1a1a1a;
    --button-border: #4d9fff;
    --link-color: #4d9fff;
    --footer-text: #aaa;
    --footer-link: #aaa;
}

/* 主题切换按钮样式 */
.theme-switch {
    margin-right: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-icon {
    font-size: 1.2rem;
}

[data-theme="dark"] .theme-icon.light,
[data-theme="light"] .theme-icon.dark {
    display: none;
}

/* 添加面包屑导航样式 */
.breadcrumb {
    background-color: var(--bg-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-hover);
} 