:root {
    --bg-primary: #121218;
    --bg-secondary: #1a1a24;
    --bg-card: #22222e;
    --bg-hover: #2a2a38;
    --text-primary: #e8e8f0;
    --text-secondary: #8a8aa0;
    --text-muted: #5a5a70;
    --accent-color: #00e676;
    --accent-dark: #00c853;
    --border-color: #2a2a38;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --logo-src: url('../images/TN_WHITE.svg');
}

[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f0f0f5;
    --bg-card: #ffffff;
    --bg-hover: #e8e8ed;
    --text-primary: #1a1a24;
    --text-secondary: #5a5a6e;
    --text-muted: #8a8aa0;
    --accent-color: #00c853;
    --accent-dark: #00a040;
    --border-color: #d0d0d8;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --logo-src: url('../images/TN_DARK.svg');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/NotoSansSC-Regular.woff2') format('woff2'),
         local('Noto Sans SC Regular'), local('NotoSansSC-Regular');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/NotoSansSC-Medium.woff2') format('woff2'),
         local('Noto Sans SC Medium'), local('NotoSansSC-Medium');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/NotoSansSC-SemiBold.woff2') format('woff2'),
         local('Noto Sans SC SemiBold'), local('NotoSansSC-SemiBold');
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/NotoSansSC-Bold.woff2') format('woff2'),
         local('Noto Sans SC Bold'), local('NotoSansSC-Bold');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Orbitron-Regular.woff2') format('woff2'),
         local('Orbitron Regular');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Orbitron-Medium.woff2') format('woff2'),
         local('Orbitron Medium');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Orbitron-SemiBold.woff2') format('woff2'),
         local('Orbitron SemiBold');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Orbitron-Bold.woff2') format('woff2'),
         local('Orbitron Bold');
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-weight: 700;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
}

.logo img {
    width: 40px;
    height: 40px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    /* 隐藏li默认样式 */
    list-style-type: none;
}

.nav-links li a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
}

.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dropdown:hover > a::after {
    color: var(--accent-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.25rem 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px var(--shadow-color);
    z-index: 1001;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-hover);
    color: var(--accent-color);
}

.theme-switch {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.theme-switch:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

main {
    margin-top: 80px;
}

.hero {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-dark));
    color: #121218;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.35);
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-color));
    color: #121218;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #121218;
}

.section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.member-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card-buttons .btn {
    flex: 1;
    min-width: 100px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.card-link:hover {
    gap: 1rem;
}

.member-card {
    text-align: center;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.member-title {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.member-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.organization {
    text-align: center;
    padding: 2rem;
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.org-node {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.org-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.culture-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.culture-slogan {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.culture-motto {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--accent-color);
}

.careers-list {
    max-width: 800px;
    margin: 0 auto;
}

.career-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.career-item:hover {
    border-color: var(--accent-color);
}

.career-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.career-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.career-count {
    background-color: var(--accent-color);
    color: #121218;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.career-description {
    color: var(--text-secondary);
}

.comment-section {
    max-width: 800px;
    margin: 0 auto;
}

.comment-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.login-btn {
    background-color: #24292e;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background-color: #30363d;
    color: #ffffff;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
}

footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-links li a {
    color: var(--text-secondary);
}

.footer-links li a:hover {
    color: var(--accent-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.github-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.github-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.github-links a:hover {
    color: var(--accent-color);
}

.subnav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.subnav-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 20px;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.subnav-btn.active,
.subnav-btn:hover {
    background-color: var(--accent-color);
    color: #121218;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: all 0.25s ease;
    }

    .dropdown-menu.mobile-active {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        overflow: visible;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .member-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-title {
        font-size: 1.5rem;
    }

    .career-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .culture-section {
        padding: 2rem 1rem;
    }

    .culture-slogan {
        font-size: 1.5rem;
    }

    .card-buttons {
        flex-direction: column;
    }

    .card-buttons .btn {
        width: 100%;
    }

    .member-cards {
        grid-template-columns: 1fr;
    }
}
