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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0d1b30 100%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
}

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

.header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 40px;
}

.header h1 {
    font-size: 32px;
    color: #d4af37;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.login-card {
    max-width: 450px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    text-align: center;
    color: #d4af37;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.15);
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 8px;
    color: #0a1628;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
}

.error-msg {
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    display: none;
    margin-top: 10px;
}

.success-msg {
    color: #52c41a;
    font-size: 14px;
    text-align: center;
    display: none;
    margin-top: 10px;
}

.welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.welcome-bar h2 {
    color: #d4af37;
    font-size: 22px;
}

.welcome-bar .user-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.logout-btn, .nav-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.logout-btn:hover, .nav-btn:hover, .nav-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.section-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0d1b30 100%);
    padding: 15px 0;
    z-index: 100;
}

.section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.section-nav .nav-btn.active {
    background: rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
    color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.section-title {
    color: #d4af37;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    width: 6px;
    height: 28px;
    background: #d4af37;
    border-radius: 3px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 22px 25px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.5);
}

.info-card .card-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 8px;
}

.info-card .card-value {
    color: #d4af37;
    font-size: 22px;
    font-weight: bold;
    word-break: break-all;
}

.info-card .card-value.normal {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.convention-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 50px 60px;
    line-height: 2;
}

.convention-content h3 {
    color: #d4af37;
    font-size: 24px;
    text-align: center;
    margin: 10px 0 10px 0;
    letter-spacing: 2px;
}

.convention-content h4 {
    color: #d4af37;
    font-size: 18px;
    text-align: center;
    margin: 30px 0 15px 0;
}

.convention-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-indent: 2em;
    text-align: justify;
}

.convention-content ul {
    margin: 10px 0 15px 0;
    padding-left: 4em;
}

.convention-content li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    list-style: disc;
}

.convention-content strong {
    color: #d4af37;
}

.convention-content .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    text-indent: 0;
}

.project-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 148, 31, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.project-title {
    color: #d4af37;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-value {
    color: #d4af37;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.team-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 25px;
}

.team-group h4 {
    color: #d4af37;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.team-group ul {
    list-style: none;
    padding-left: 0;
}

.team-group li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    font-size: 14px;
}

.team-group li::before {
    content: "◆";
    color: #d4af37;
    position: absolute;
    left: 0;
    font-size: 10px;
    top: 4px;
}

.team-group li span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-left: 8px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #d4af37;
}

.client-list {
    margin-top: 20px;
}

.client-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.client-name {
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
}

.client-id {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-left: 10px;
}

.edit-btn, .delete-btn, .data-btn {
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    color: #d4af37;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.edit-btn:hover {
    background: rgba(212, 175, 55, 0.3);
}

.data-btn {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
    color: #4ecdc4;
}

.data-btn:hover {
    background: rgba(78, 205, 196, 0.3);
}

.delete-btn {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.3);
}

.edit-form {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.add-client-btn {
    width: 100%;
    padding: 15px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    color: #d4af37;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.add-client-btn:hover {
    background: rgba(212, 175, 55, 0.3);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #1a2a4a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    float: right;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 24px;
    cursor: pointer;
}

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.admin-content {
    max-width: 1000px;
    margin: 50px auto;
    background: #1a2a4a;
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.admin-content h2 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 20px;
}

.admin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 50%;
    color: #0a1628;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s;
}

.admin-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-3 {
        grid-column: span 2;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .convention-content {
        padding: 30px 25px;
    }
}

@media (max-width: 600px) {
    .card-grid, .form-row {
        grid-template-columns: 1fr;
    }
    .col-span-2, .col-span-3 {
        grid-column: span 1;
    }
    .welcome-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .section-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 3px;
        padding: 10px 0;
    }
    .section-nav .nav-btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        font-size: 11px;
        padding: 8px 2px;
        text-align: center;
        line-height: 1.2;
    }
    .client-header > div:nth-child(2) {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .client-header .edit-btn,
    .client-header .data-btn,
    .client-header .delete-btn {
        margin-left: 0;
        width: auto;
        min-width: 70px;
        text-align: center;
    }
    .client-header .delete-btn {
        margin-top: 0;
    }
}
