/* ============================================
   立行天下 - 主样式表
   ============================================ */

:root {
    --primary: #0a1628;
    --primary-light: #152238;
    --accent: #00a8e8;
    --accent-light: #33c0f0;
    --accent-dark: #0088c0;
    --gold: #c9a96e;
    --gold-light: #d4b87a;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 76px;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ============ NAVBAR ============ */
#mainNav {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    padding: 12px 0;
}

#mainNav.navbar-scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 8px 0;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 1px;
}

.brand-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0 2px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.dropdown-menu {
    background: var(--primary-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    margin-top: 12px;
}

.dropdown-item {
    color: rgba(255,255,255,0.8);
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ============ HERO / BANNER ============ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #0d1f3c 50%, #0a1628 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0,168,232,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201,169,110,0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(0,168,232,0.15);
    border: 1px solid rgba(0,168,232,0.3);
    color: var(--accent-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 36px;
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* ============ BUTTONS ============ */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,168,232,0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ============ SECTION COMMON ============ */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 60px 0; }

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

.section-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--primary); }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ============ SERVICE CARDS ============ */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0,168,232,0.1), rgba(0,168,232,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============ CASE CARDS ============ */
.case-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.case-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--primary-light);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-body {
    padding: 24px;
}

.case-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.case-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.case-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

.case-meta i { color: var(--accent); margin-right: 4px; }

/* ============ NEWS CARDS ============ */
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-image {
    height: 200px;
    overflow: hidden;
    background: var(--primary-light);
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img { transform: scale(1.05); }

.news-date-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(10,22,40,0.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.news-body {
    padding: 24px;
}

.news-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-body h3 a {
    color: var(--primary);
}

.news-body h3 a:hover {
    color: var(--accent);
}

.news-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============ TEAM CARDS ============ */
.team-card {
    text-align: center;
    padding: 32px 20px;
    transition: var(--transition);
}

.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--accent);
    background: var(--primary-light);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

.team-card .position {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-card .bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============ CONTACT PAGE ============ */
.contact-info-card {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 40px 32px;
    color: #fff;
    height: 100%;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--accent-light);
}

.contact-info-text h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--primary);
}

.form-control, .form-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,168,232,0.1);
}

textarea.form-control {
    min-height: 140px;
}

/* ============ ABOUT PAGE ============ */
.about-hero {
    background: linear-gradient(135deg, var(--primary), #0d1f3c);
    padding: 120px 0 80px;
    color: #fff;
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    padding: 80px 0;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ============ STATS STRIP ============ */
.stats-strip {
    background: var(--primary);
    padding: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 16px;
}

.stat-item .stat-icon {
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-item .stat-label-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, var(--primary), #0d1f3c);
    padding: 100px 0 50px;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header .breadcrumb {
    justify-content: center;
    margin: 0;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.5);
}

/* ============ FILTER TABS ============ */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============ PAGINATION ============ */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    color: var(--primary);
    border-radius: 8px;
    margin: 0 3px;
    padding: 8px 16px;
    border: none;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.page-link:hover {
    background: var(--accent);
    color: #fff;
}

.page-item.active .page-link {
    background: var(--accent);
    color: #fff;
}

/* ============ DETAIL PAGE ============ */
.article-detail {
    padding: 80px 0;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 24px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-cover {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.article-cover img {
    width: 100%;
    height: auto;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}

.article-content h2 { font-size: 1.5rem; margin: 32px 0 16px; font-weight: 700; }
.article-content h3 { font-size: 1.25rem; margin: 24px 0 12px; font-weight: 600; }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: var(--radius-sm); margin: 20px 0; max-width: 100%; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 20px; }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--primary);
    padding: 70px 0 0;
    color: rgba(255,255,255,0.7);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.social-links { display: flex; gap: 12px; }

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-contact li i {
    color: var(--accent-light);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 40px 0 24px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    padding-bottom: 24px;
}

.footer-copyright a { color: rgba(255,255,255,0.5); }

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat .stat-value { font-size: 1.5rem; }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .navbar-collapse {
        background: rgba(10,22,40,0.98);
        padding: 16px;
        border-radius: var(--radius-sm);
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    body { padding-top: 66px; }
    .hero-section { min-height: auto; padding: 40px 0; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 16px; }
    .hero-stat .stat-value { font-size: 1.3rem; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .contact-info-card, .contact-form-card { padding: 28px 20px; }
    .stats-strip { padding: 30px 0; }
    .stat-item .stat-number { font-size: 1.8rem; }
    .page-header { padding: 80px 0 30px; }
    .page-header h1 { font-size: 1.5rem; }
    .article-detail { padding: 40px 0; }
    .article-header h1 { font-size: 1.5rem; }
}
