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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.main-header h1 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
}

#main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.main-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7A7E83;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #3cc51f;
}

.nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 14px;
}

.province-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.province-container .title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: bold;
}

.province-buttons {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.province-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 40px 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
}

.province-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.province-btn img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.province-btn text,
.province-btn span {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
}

.coming-soon {
    margin-top: 60px;
    color: #999;
    font-size: 16px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.menu-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.menu-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.menu-item span {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.back-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5568d3;
}

.page-title {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

.score-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.score-container .title {
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.mine-type-selector {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.selector-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
}

.type-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.type-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 140px;
}

.type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.type-btn:active {
    transform: translateY(0);
}

.mine-type-content {
    margin-top: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.score-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.item-name {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.item-method {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #667eea;
}

.item-input-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.standard-score {
    font-size: 14px;
    color: #667eea;
    font-weight: bold;
}

.score-label {
    font-size: 14px;
    color: #333;
}

.score-input {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.score-input:focus {
    outline: none;
    border-color: #667eea;
}

.total-score {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.total-score span {
    font-size: 28px;
}

.table {
    border: 1px solid #cccccc;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
}

.table-header, .table-row {
    display: flex;
    border-bottom: 1px solid #cccccc;
}

.table-header {
    background-color: #f5f5f5;
    font-weight: bold;
}

.cell {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 15px;
    border-right: 1px solid #e0e0e0;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:nth-child(even) {
    background-color: #fafafa;
}

.table-row:hover {
    background-color: #f0f9eb;
}

.cell:first-child {
    width: 60px;
    min-width: 60px;
    flex: none;
}

.cell:nth-child(2) {
    width: 200px;
    min-width: 200px;
    flex: none;
}

.cell:nth-child(3) {
    width: 100px;
    min-width: 100px;
    flex: none;
}

.cell:nth-child(4) {
    width: 120px;
    min-width: 120px;
    flex: none;
}

.cell input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.cell input:focus {
    outline: none;
    border-color: #667eea;
}

.score-display {
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.wzStyle {
    font-size: 15px;
    color: black;
    line-height: 1.8;
    text-indent: 2em;
    margin-left: 5%;
    margin-right: 5%;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

.action-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .province-buttons {
        flex-direction: column;
        gap: 30px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .main-header h1 {
        font-size: 24px;
    }

    .type-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .type-btn {
        width: 100%;
    }

    .item-input-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-input {
        max-width: 100%;
    }
}

.my-page-container {
    padding: 30px;
}

.my-page-container .section {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 28px;
}

.my-page-container .section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333333;
}

.my-page-container .title-bar {
    width: 6px;
    height: 20px;
    background-color: #0066cc;
    margin-right: 10px;
}

.my-page-container .section-content {
    font-size: 16px;
    color: #333333;
    line-height: 2.0;
    text-indent: 2em;
}

.my-page-container .info-item {
    font-size: 16px;
    color: #333333;
    margin-top: 12px;
    line-height: 1.6;
    display: flex;
    margin-bottom: 12px;
}

.my-page-container .info-label {
    color: #333333;
    width: 120px;
    font-size: 16px;
    font-weight: bold;
}

.my-page-container .info-value {
    color: #333;
    font-size: 16px;
    flex: 1;
}

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
}
