/* 基础设置 */
:root {
    --primary-color: #165DFF;
    --secondary-color: #FF7D00;
    --dark-color: #1D2129;
    --light-color: #F2F3F5;
    --gray-color: #86909C;
    --white-color: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #F7F8FA;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.primary-btn:hover {
    background-color: #0E42D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 93, 255, 0.3);
}

.secondary-btn {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: #F0F5FF;
    transform: translateY(-2px);
}

/* 导航栏 */
.navbar {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #E8F3FF 0%, #D6EFFF 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('../images/credit-card-hero.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #4E5969;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* 特色内容 */
.features {
    padding: 6rem 0;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* 最新资讯 */
.latest-news {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: #F7F8FA;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.category {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1rem;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 订阅区域 */
.subscribe {
    padding: 6rem 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.subscribe h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.subscribe p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.subscribe-form .btn {
    border-radius: 0 4px 4px 0;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* 页面标题区域 */
.page-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 用卡技巧页面 */
.tips-categories {
    padding: 6rem 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 8px 20px;
    background-color: var(--white-color);
    border: 1px solid var(--light-color);
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tip-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
}

.tip-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tip-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-list {
    margin-top: 1rem;
}

.tip-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tip-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 常见问题 */
.faq-section {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--light-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: #F7F8FA;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 1.5rem 0;
    border-top: 1px solid var(--light-color);
}

/* 最新法规页面 */
.laws-timeline {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background-color: var(--light-color);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: calc(45% - 50px);
    left: auto;
}

.timeline-item:nth-child(even) .timeline-date {
    left: calc(45% - 50px);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.law-points {
    margin: 1rem 0;
}

.law-points li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.law-points li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.impact-analysis {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--light-color);
}

.impact-analysis h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.law-interpretation {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.interpretation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.interpretation-card {
    background-color: #F7F8FA;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.expert-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.expert-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-details h3 {
    margin-bottom: 0.3rem;
}

.expert-details p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.law-tools {
    padding: 6rem 0;
}

.law-search {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.law-search h3 {
    margin-bottom: 1rem;
}

.law-search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 15px;
    border: 1px solid var(--light-color);
    border-radius: 4px;
    font-size: 1rem;
    margin-right: 1rem;
}

.popular-laws {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.popular-laws h3 {
    margin-bottom: 1rem;
}

.popular-laws li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.popular-laws li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.popular-laws a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 申请入口页面 */
.application-guide {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.guide-step {
    display: flex;
    gap: 1rem;
}

.step-number {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.application-notes {
    background-color: #FFF8E6;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.application-notes h3 {
    margin-bottom: 1rem;
    color: #E67700;
}

.application-notes li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.application-notes li::before {
    content: '!';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.bank-applications {
    padding: 6rem 0;
}

.bank-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--white-color);
    border: 1px solid var(--light-color);
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.bank-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bank-logo {
    background-color: #F7F8FA;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-logo img {
    max-height: 60px;
}

.bank-info {
    padding: 1.5rem;
    flex: 1;
}

.bank-info h3 {
    margin-bottom: 0.5rem;
}

.bank-info p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.card-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-benefits span {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    border-radius: 20px;
}

.apply-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
}

.apply-btn:hover {
    background-color: #0E42D2;
}

.apply-btn i {
    margin-left: 5px;
}

.popular-cards {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.cards-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card-item {
    background-color: #F7F8FA;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card-item:hover {
    transform: translateY(-5px);
}

.card-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-details {
    padding: 1.5rem;
}

.card-details h3 {
    margin-bottom: 0.5rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.card-features span {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    border-radius: 20px;
}

.view-details {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
}

.view-details:hover {
    text-decoration: underline;
}

/* 关于我们页面 */
.about-content {
    padding: 6rem 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-features {
    margin-top: 1.5rem;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.about-features i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.team-section {
    padding: 2rem 0;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 5px solid var(--white-color);
    box-shadow: var(--shadow);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.contact-section {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.social-contacts h4 {
    margin-bottom: 1rem;
}

.social-contacts a {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-contacts i {
    margin-right: 5px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 70px !important;
        margin-right: 0 !important;
    }
    
    .timeline-date {
        left: 0 !important;
        right: auto !important;
    }
    
    .about-intro,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white-color);
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    .main-nav li {
        margin: 0;
        margin-bottom: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-radius: 4px;
        margin-bottom: 1rem;
    }
    
    .subscribe-form .btn {
        border-radius: 4px;
    }
    
    .tip-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tip-icon {
        align-self: center;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
}