/* 华证链官网样式文件 */

/* 1. 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 2. 色彩系统 - 主色调橙色 */
:root {
    --primary-color: #EF8130; /* 主色调：橙色 */
    --primary-dark: #D87020; /* 深橙色 */
    --primary-light: #F8A055; /* 浅橙色 */
    --secondary-color: #1E3A8A; /* 辅助色：深蓝色 */
    --background-color: #F5F5F5; /* 背景色：浅灰色 */
    --text-color: #333; /* 文本颜色：深灰色 */
    --text-muted: #666; /* 次要文本：中灰色 */
    --border-color: #E0E0E0; /* 边框颜色 */
    --success-color: #10B981; /* 成功颜色 */
    --error-color: #EF4444; /* 错误颜色 */
    --warning-color: #F59E0B; /* 警告颜色 */
    --info-color: #3B82F6; /* 信息颜色 */
}

/* 3. 按钮样式 */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 129, 48, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(239, 129, 48, 0.3);
}

/* 4. 导航栏样式 */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* 5. Hero区域样式 */
#hero {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(239, 129, 48, 0.1) 0%, transparent 50%);
    z-index: 0;
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#hero h2 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

#hero p.lead {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

/* 6. 产品介绍页面Hero */
#product-hero,
#contact-hero {
    background-color: var(--background-color);
    padding: 4rem 0;
}

#product-hero h1,
#contact-hero h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 7. 卡片样式 */
.card {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

/* 8. 章节标题样式 */
h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* 9. 图标样式 */
.icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 10. 列表样式 */
ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

ul.list-unstyled li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 11. 表单样式 */
.form-control {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(239, 129, 48, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
}

/* 12. 页脚样式 */
footer {
    background-color: #212529;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

footer h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
}

footer .border-top {
    border-color: #343a40 !important;
}

/* 13. 社交媒体图标样式 */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 14. 分隔线样式 */
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(239, 129, 48, 0.5), rgba(0, 0, 0, 0));
    margin: 3rem 0;
}

/* 15. 间距工具类 */
.mb-10 {
    margin-bottom: 6rem !important;
}

.my-10 {
    margin-top: 6rem !important;
    margin-bottom: 6rem !important;
}

/* 16. 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏 */
    .navbar-nav .nav-link {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    
    /* Hero区域 */
    #hero {
        padding: 4rem 0;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero .d-flex {
        justify-content: center;
    }
    
    /* 产品介绍 */
    #product-list .row {
        text-align: center;
    }
    
    /* 联系信息 */
    #contact-content .row {
        text-align: center;
    }
    
    /* 社交媒体图标 */
    .social-icons {
        justify-content: center;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 18. 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 19. 图片样式 */
img {
    max-width: 100%;
    height: auto;
}

/* 20. 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}