/* ===========================
   凉程公益信息网 - 暖色公益风格
   =========================== */

/* CSS变量 */
:root {
    --primary: #e8734a;
    --primary-dark: #d4603a;
    --primary-light: #fdf0ec;
    --secondary: #f5a623;
    --warm-red: #e85d4a;
    --warm-orange: #f09848;
    --warm-yellow: #fcc63d;
    --text-dark: #2d2d2d;
    --text-body: #555;
    --text-light: #888;
    --bg-white: #ffffff;
    --bg-light: #faf8f6;
    --bg-warm: #fef7f2;
    --border: #f0e8e3;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   顶部导航
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--warm-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 4px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    color: var(--text-body);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===========================
   首页大图
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ff9a56 0%, #e8734a 30%, #d4603a 60%, #c2503a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding-top: 70px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease;
}

.hero-desc {
    font-size: 20px;
    opacity: 0.92;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===========================
   按钮
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232,115,74,0.35);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-warm {
    background: var(--primary);
    color: white;
}

.btn-warm:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-share {
    background: var(--bg-warm);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-share:hover {
    background: var(--primary-light);
}

/* ===========================
   数据统计条
   =========================== */
.stats {
    padding: 50px 0;
    background: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-number::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ===========================
   通用板块
   =========================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-more {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-more .btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}

.section-more .btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===========================
   寻亲专区
   =========================== */
.section-seek {
    background: var(--bg-warm);
}

.seek-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.seek-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.seek-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.seek-card-header {
    padding: 14px 20px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seek-card-header.urgent {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
}

.seek-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: var(--warm-red);
}

.seek-badge.normal {
    background: var(--warm-orange);
}

.seek-date {
    font-size: 13px;
    color: var(--text-light);
}

.seek-card-body {
    padding: 20px;
    display: flex;
    gap: 16px;
}

.seek-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-light);
    flex-shrink: 0;
}

.seek-info h3 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.seek-info p {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.8;
}

.seek-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 寻亲小贴士 */
.seek-tips {
    margin-top: 60px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.seek-tips > h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.seek-tips > h3 i {
    color: var(--warm-yellow);
    margin-right: 8px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tip-item {
    padding: 20px;
    background: var(--bg-warm);
    border-radius: var(--radius);
    transition: var(--transition);
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tip-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 8px;
}

.tip-item h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.tip-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   反诈中心
   =========================== */
.section-antifraud {
    background: var(--bg-white);
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #fff5f0, #ffe8dd);
    border: 1px solid #ffd6c4;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.alert-icon {
    font-size: 28px;
    color: var(--warm-red);
    animation: pulse 2s ease-in-out infinite;
}

.alert-text {
    flex: 1;
    overflow: hidden;
    font-size: 14px;
    color: var(--warm-red);
    font-weight: 500;
}

.fraud-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fraud-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.fraud-card:hover {
    background: white;
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.fraud-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--warm-orange));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 18px;
}

.fraud-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.fraud-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}

.fraud-tip {
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary-dark);
    line-height: 1.6;
}

/* 反诈工具 */
.antifraud-tools {
    margin-top: 50px;
    text-align: center;
}

.antifraud-tools > h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.antifraud-tools > h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.tools-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.tool-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tool-item i {
    font-size: 20px;
    color: var(--primary);
}

/* ===========================
   日用百货
   =========================== */
.section-shop {
    background: var(--bg-warm);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.shop-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.shop-img {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-warm));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: var(--primary);
    opacity: 0.6;
}

.shop-body {
    padding: 20px;
}

.shop-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.shop-body h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.shop-body p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.6;
}

.shop-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-now {
    font-size: 22px;
    font-weight: 700;
    color: var(--warm-red);
}

.price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ===========================
   关于我们
   =========================== */
.section-about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-body);
}

.about-values {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.value-item i {
    color: var(--primary);
    font-size: 20px;
}

.about-contact {
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 30px;
}

.about-contact h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list li i {
    color: var(--primary);
    font-size: 16px;
}

/* ===========================
   底部
   =========================== */
.footer {
    background: #2d2d2d;
    color: #aaa;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #404040;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.footer-bottom a {
    color: #999;
    font-size: 13px;
}

.footer-bottom a:hover {
    color: var(--primary);
}

.footer-bottom p {
    margin-bottom: 6px;
}

/* ===========================
   弹窗
   =========================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    text-align: center;
}

.modal-body h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ===========================
   回到顶部
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ===========================
   动画
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* 滚动出现动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   响应式布局
   =========================== */
@media (max-width: 1024px) {
    .seek-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fraud-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
    }
    
    .nav.open {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .seek-grid {
        grid-template-columns: 1fr;
    }
    
    .fraud-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .seek-tips {
        padding: 24px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .tools-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 26px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .seek-card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
