/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* payduty.huodaiagent.com 风格主题变量 */
:root {
    --primary-color: #234099; /* 深蓝 */
    --primary-gradient: linear-gradient(90deg, #234099 0%, #3b82f6 100%);
    --secondary-color: #3b82f6; /* 亮蓝 */
    --bg-main: #f5f7fa; /* 浅灰背景 */
    --bg-card: #fff;
    --bg-navbar: #1a2540;
    --bg-tag: #f0f3f8;
    --border-color: #e5e7eb;
    --shadow: 0 2px 8px 0 rgba(35,64,153,0.06);
    --shadow-hover: 0 4px 16px 0 rgba(35,64,153,0.10);
    --text-main: #222c3a;
    --text-secondary: #234099;
    --text-muted: #7b8794;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;
    --font-main: 'Segoe UI', 'PingFang SC', 'Inter', Arial, sans-serif;
    --light-accent: #60a5fa;
    --dark-color: #020617;
    --light-color: #ffffff;
    --gray-color: #64748b;
    --light-gray: #f1f5f9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
    padding-top: 0 !important;
}

/* 顶部深色导航栏 */
.navbar {
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px 0 rgba(35,64,153,0.06);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 32px 1.1rem 32px;
}
.nav-logo h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-family: var(--font-main);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-md);
    padding: 0.3em 1em;
    transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Hero */
.hero {
    background: #f6f9fc;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 280px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 120px;
}

.hero-title, .hero-subtitle {
    text-align: center;
    width: 100%;
    white-space: normal;
    word-break: keep-all;
    display: block;
}
.hero-title {
    font-size: 3.6rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.01em;
    font-family: var(--font-main);
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}
.hero-values {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}
.value-tag {
    background: var(--bg-tag);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.5em 1.3em;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, border 0.2s;
    margin-bottom: 0.2em;
    display: flex;
    align-items: center;
    gap: 0.3em;
}
.value-tag:hover {
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-hover);
}

/* 卡片通用 */
.value-card, .rule-card, .template-card, .contact-card, .quote-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
}
.value-card:hover, .rule-card:hover, .template-card:hover, .contact-card:hover, .quote-item:hover {
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--primary-color);
    transform: translateY(-2px) scale(1.01);
}
.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary-color);
}
.value-card h3 {
    font-size: 2.1rem !important;
    font-weight: 700;
    color: #2450a7;
    margin-top: 0;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    font-family: 'San Francisco', 'SF Pro Display', 'Segoe UI', 'Arial', sans-serif;
}
.value-card p {
    font-size: 1.32rem;
    line-height: 2.1;
    text-align: center;
    font-family: 'San Francisco', 'SF Pro Display', 'Segoe UI', 'Arial', sans-serif;
    max-width: 18em;
    margin-top: 0.5em;
    margin-bottom: auto;
    white-space: pre-line;
}

/* 主按钮 */
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.7em 2.2em;
    box-shadow: 0 2px 8px 0 rgba(35,64,153,0.08);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #234099 100%);
    box-shadow: 0 4px 16px 0 rgba(35,64,153,0.13);
}

/* section title */
.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    font-family: var(--font-main);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    margin: 0.7em auto 0 auto;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-gradient);
}

/* 分割线 */
.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

/* 价值观部分 */
.values-section {
    padding: 30px 0 120px 0;
    background: var(--light-gray);
    text-align: center;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a2340;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'San Francisco', 'SF Pro Display', 'Segoe UI', 'Arial', sans-serif;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.values-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2.8rem;
    max-width: 1400px;
    margin-left: 80px;
    margin-top: 0;
    width: 100%;
}

.value-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 8px 32px 0 rgba(30, 42, 80, 0.10), 0 1.5px 6px 0 rgba(30, 42, 80, 0.06);
    padding: 1rem 2.8rem 2.8rem 2.8rem;
    min-width: 350px;
    max-width: 500px;
    min-height: 340px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
}

.value-card:hover {
    box-shadow: 0 16px 48px 0 rgba(30, 42, 80, 0.16), 0 3px 12px 0 rgba(30, 42, 80, 0.10);
    transform: translateY(-6px) scale(1.025);
}

.value-card h3 {
    font-size: 2.1rem !important;
    font-weight: 700;
    color: #2450a7;
    margin-top: 0;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    font-family: 'San Francisco', 'SF Pro Display', 'Segoe UI', 'Arial', sans-serif;
}

.value-card p {
    color: #222c3c;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
    font-family: 'San Francisco', 'SF Pro Display', 'Segoe UI', 'Arial', sans-serif;
}

@media (max-width: 1100px) {
  .values-grid {
    flex-direction: column;
    align-items: center;
    max-width: 98vw;
  }
}

/* 创始人感言 */
.founder-section {
    padding: 30px 0 40px 0;
    background: var(--light-color);
}

.founder-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.founder-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.founder-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 2.2;
    color: var(--text-secondary);
    text-align: left;
}

.founder-text p {
    margin-bottom: 1.5rem;
}

.founder-text blockquote {
    background: #f5f9ff;
    padding: 3rem 3.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent-color);
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-primary);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.founder-text blockquote::before {
    content: '';
}

.founder-text blockquote p {
    font-size: 1.18rem;
    line-height: 2;
    margin-bottom: 1.2em;
}

.founder-text blockquote p:last-child {
    margin-bottom: 0;
}

/* 群规部分 */
.rules-section {
    padding: 15px 0 120px 0;
    background: var(--light-gray);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(350px, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 2.8rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 0;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

.rule-card {
    min-width: 350px;
    max-width: 500px;
    flex: none;
    background: var(--bg-card);
    padding-top: 0;
    padding-right: 1.7rem;
    padding-bottom: 2.2rem;
    padding-left: 1.7rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border-color);
    transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-accent) 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rule-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.rule-card:hover::before {
    opacity: 1;
}

.rule-number {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-accent) 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.rule-card h3 {
    position: static;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.rule-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.08rem;
    text-align: left;
    width: 100%;
    padding-left: 0.2em;
    padding-right: 0.2em;
    box-sizing: border-box;
}

.rule-card strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* 群的境界 */
.philosophy-section {
    padding-top: 2.5em !important;
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
}

.philosophy-content {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.philosophy-content h2 {
    margin-top: 0;
    margin-bottom: 1.2em;
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    letter-spacing: 0.01em;
}

.philosophy-quotes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.quote-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.quote-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
}

.philosophy-text {
    margin-top: 1.5em;
}
.philosophy-text .para {
    margin-bottom: 1.5em;
    text-align: left;
    font-size: 1.25rem;
    line-height: 2;
    /* text-indent: 2em; */
}
.philosophy-text .para:first-child {
    text-indent: 0;
}

/* 价值观念 */
.wisdom-section {
    padding: 120px 0;
    background: var(--light-color);
    color: var(--text-primary);
}

.wisdom-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.wisdom-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    letter-spacing: -0.025em;
}

.wisdom-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    color: var(--text-secondary);
}

.wisdom-text p {
    margin-bottom: 1.5rem;
}

.wisdom-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

.highlight {
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    font-weight: 500;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

/* 自我介绍模板 */
.intro-section {
    padding-top: 1.2em !important;
    padding: 120px 0;
    background: var(--light-gray);
}

.intro-template {
    text-align: center;
}

.intro-template h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.template-card {
    background: var(--bg-card);
    padding: 2.2rem 1.7rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    border: 1.5px solid var(--border-color);
    font-size: 1.18rem;
    line-height: 1.9;
}

.template-item {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.template-item strong {
    color: var(--accent-color);
    font-weight: 600;
}

.intro-template .template-card {
    font-size: 1.25rem;
    line-height: 1.9;
    transform: scale(1.08);
    transform-origin: top center;
}

.intro-template .template-item {
    font-size: 1.06em;
}

/* 联系方式 */
.contact-section {
    padding-top: 1.2em !important;
    padding-bottom: 2.5em !important;
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
}

.contact-info {
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.contact-item {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item strong {
    color: rgba(255, 255, 255, 0.9);
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .value-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .philosophy-quotes {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .founder-text,
    .philosophy-text,
    .wisdom-text {
        font-size: 1rem;
    }
    
    .values-section,
    .rules-section,
    .philosophy-section,
    .founder-section,
    .wisdom-section,
    .intro-section,
    .contact-section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .value-card,
    .rule-card {
        padding: 2rem;
    }
    
    .template-card {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .values-section,
    .rules-section,
    .philosophy-section,
    .founder-section,
    .wisdom-section,
    .intro-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .nav-container {
        padding: 0.75rem 20px;
    }
}

@media (max-width: 700px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

/* 滚动平滑 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.value-card,
.rule-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 优化导航栏滚动效果 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

/* 添加加载状态 */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 鼠标悬停效果 */
.value-card:hover .value-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.rule-card:hover .rule-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 额外的现代化样式 */
.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-values {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* 添加更多视觉层次 */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--light-accent) 100%);
    border-radius: 2px;
}

/* 优化按钮效果 */
.value-tag,
.contact-card,
.template-card,
.value-card,
.rule-card,
.quote-item {
    cursor: pointer;
    user-select: none;
}

/* 添加微妙的渐变效果 */
.values-section,
.rules-section,
.intro-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, rgba(241, 245, 249, 0.8) 100%);
    position: relative;
}

.values-section::before,
.rules-section::before,
.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* 优化文本选择效果 */
::selection {
    background: #cce6ff;
    color: #111;
}

::-moz-selection {
    background: #cce6ff;
    color: #111;
}

.contact-section .section-title {
    color: #90c2ff !important;
    font-weight: 900;
} 