* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #1d8df1 0%, #4ac4a2 100%);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.closed {
    right: -320px;
}

.sidebar-toggle {
    position: fixed;
    right: 340px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 1001;
}

.sidebar.closed .sidebar-toggle {
    right: 20px;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.sidebar-toggle::before {
    content: '▶';
    color: white;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.sidebar.closed .sidebar-toggle::before {
    content: '◀';
}

.sidebar-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.appreciation-section {
    text-align: center;
    margin-bottom: 20px;
}

.wechat-qr {
    text-align: center;
    margin-bottom: 15px;
}

.qr-code {
    width: 80%;
    height: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.appreciation-text {
    text-align: center;
    margin-top: 15px;
}

.appreciation-text p {
    margin: 8px 0;
    color: #fff;
    line-height: 1.4;
    font-size: 120%;
    font-weight: bold;
}

.button-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5%;
}

.sidebar-btn {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    font-weight: bold;
    font-size: 140%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pro-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pro-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.pro-btn:hover::before {
    left: 100%;
}

.pro-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.home-btn {
    background: linear-gradient(135deg, #30a1fd 0%, #00ff6ace 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 232, 232, 0.2), transparent);
    transition: left 0.5s;
}

.home-btn:hover::before {
    left: 100%;
}

.home-btn:hover {
    background: linear-gradient(135deg, #0071db 0%, #0071db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 243, 197, 0.4);
}

.custom-card {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 8px;
    height: 38px;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.custom-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: #1186fc;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    padding: 0 15px;
}

.custom-input::placeholder {
    color: #95a5a6;
    opacity: 0.7;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(10px);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.header {
    background: #1187fd;
    padding: 20px 25px;
    display: flex;
    align-items: stretch;
    gap: 15px;
    min-height: 60px;
}

.qq-input-section {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

#qqInput {
    flex: 1;
    padding: 2px 18px;
    border: 2px solid #3498db;
    border-radius: 30px;
    font-size: 22px;
    outline: none;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
    text-align: center;
    height: 48px;
    box-sizing: border-box;
    min-width: 0;
}

#qqInput:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15), 0 4px 12px rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

#qqInput::placeholder {
    color: #95a5a6;
    font-weight: 400;
    font-size: 22px;
}

.qq-number {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    flex: 2;
    text-align: center;
    background: linear-gradient(135deg, #529feb 0%, #3498db 100%);
    padding: 10px 18px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(82, 159, 235, 0.3);
    transition: all 0.3s ease;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evaluate-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 12px 38px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
}

.evaluate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.evaluate-btn:hover::before {
    left: 100%;
}

.evaluate-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.evaluate-btn:active {
    transform: translateY(0);
}

.evaluate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.evaluate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.main-info {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
    gap: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.left-section {
    flex: 1;
    display: flex;
    gap: 15px;
}

.avatar-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qq-avatar {
    width: 85px;
    height: 85px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3), 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.qq-avatar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    background: linear-gradient(45deg, #3498db, #e74c3c, #27ae60, #f39c12);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qq-avatar:hover {
    transform: scale(1.05);
}

.qq-avatar:hover::after {
    opacity: 1;
}

.grade-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: none;
}

.grade-icon:hover {
    transform: scale(1.05);
}

.info-list {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-item:hover {
    background: rgba(52, 152, 219, 0.08);
}

.info-item:hover::before {
    opacity: 1;
}

.info-icon {
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 8px;
    font-size: 14px;
    min-width: 80px;
}

.info-value {
    color: #0083ff;
    font-size: 14px;
    font-weight: 500;
}

.member-info {
    color: #e74c3c !important;
    font-weight: bold;
}

.level-info {
    color: #3498db !important;
    font-weight: bold;
}

.active-days {
    color: #e67e22 !important;
    font-weight: bold;
}

.member-icon {
    width: 60px;
    height: 18px;
    margin-left: 5px;
    vertical-align: middle;
}

.level-icons {
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

.level-icon {
    width: 20px;
    height: 20px;
    margin: 0 1px;
    vertical-align: middle;
    display: inline-block;
}

.right-section {
    flex: 1;
}

.additional-info {
    padding-left: 20px;
    border-left: 2px solid #ecf0f1;
}

.level-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2px 15%;
    border-bottom: 1px solid #ecf0f1;
}

.level-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    gap: 20px;
    min-height: 40px;
}

.level-info-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.level-icon-main {
    font-size: 20px;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.2;
}

.level-value {
    color: #ff0000;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
}

.level-icons-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 24px;
}

.level-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-height: 20px;
}

.price-section {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #58d68d 100%);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.price-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-section:hover::after {
    opacity: 1;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.price-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-label {
    color: white;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.price-value {
    color: #f9ff00;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 255, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.analysis-section {
    padding: 20px;
    background: white;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.analysis-table th {
    background: linear-gradient(135deg, #1187fd 0%, #3498db 100%);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    border: none;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

.analysis-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

.analysis-table td {
    padding: 12px;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    font-size: 13px;
    transition: all 0.3s ease;
}

.analysis-table tbody tr {
    transition: all 0.3s ease;
}

.analysis-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.analysis-table tbody tr:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.analysis-table tbody tr:last-child td {
    border-bottom: none;
}

.empty-message {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.price-positive {
    color: #27ae60;
    font-weight: bold;
}

.price-zero {
    color: #95a5a6;
}

.highlight-row {
    background: #fff3cd !important;
}

.highlight-row:hover {
    background: #ffeaa7 !important;
}

.total-section {
    background: linear-gradient(135deg, #1187fd 0%, #3498db 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(17, 135, 253, 0.3);
    position: relative;
    overflow: hidden;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.total-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

.total-label {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.total-value {
    font-size: 26px;
    font-weight: bold;
    color: #fffb5d;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 156, 0, 0.4);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

@keyframes glow {
    from { text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 255, 0, 0.3); }
    to { text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 30px rgba(249, 255, 0, 0.5); }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .sidebar {
        width: 280px;
        right: -280px;
    }
    
    .sidebar-toggle {
        left: -35px;
        width: 35px;
        height: 70px;
    }
    
    .sidebar-content {
        padding: 15px;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .appreciation-text p {
        font-size: 12px;
    }
    
    .sidebar-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .container {
        border-radius: 16px;
        margin: 10px auto;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .header {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    
    #qqInput {
        flex: 1;
        padding: 14px 20px;
        font-size: 16px;
        text-align: center;
        max-width: none;
    }
    
    .evaluate-btn {
        padding: 14px 24px;
        font-size: 20px;
        flex-shrink: 0;
        width: auto;
    }
    
    .qq-number {
        font-size: 18px;
        padding: 12px 16px;
        margin-top: 10px;
        width: 100%;
    }
    
    .main-info {
        flex-direction: column;
        padding: 20px 15px;
        gap: 25px;
    }
    
    .left-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
    
    .avatar-container {
        flex-shrink: 0;
        align-items: center;
        gap: 10px;
    }
    
    .qq-avatar {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    
    .grade-icon {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }
    
    .info-list {
        flex: 1;
        min-width: 0;
    }
    
    .additional-info {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid #ecf0f1;
        padding-top: 15px;
        margin-top: 0;
    }
    
    .level-section {
        padding: 15px 20px;
    }
    
    .level-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .level-icons-wrapper {
        width: 100%;
        justify-content: flex-start;
    }
    
    .level-icons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .price-section {
        padding: 25px 15px;
    }
    
    .price-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 15px 25px;
    }
    
    .price-label {
        font-size: 18px;
    }
    
    .price-value {
        font-size: 32px;
    }
    
    .analysis-section {
        padding: 15px;
    }
    
    .analysis-table {
        font-size: 12px;
        border-radius: 8px;
    }
    
    .analysis-table th {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .analysis-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .total-section {
        padding: 18px 15px;
        border-radius: 8px;
    }
    
    .total-label {
        font-size: 16px;
    }
    
    .total-value {
        font-size: 24px;
    }
    
    .member-icon {
        width: 50px;
        height: 16px;
    }
    
    .info-item {
        padding: 8px 10px;
        margin-bottom: 6px;
        border-radius: 8px;
        flex-wrap: wrap;
    }
    
    .info-label {
        min-width: 60px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .info-value {
        font-size: 12px;
        word-break: break-all;
        flex: 1;
    }
    
    .info-icon {
        font-size: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        margin: 20px auto;
    }
    
    .main-info {
        padding: 25px;
    }
    
    .price-section {
        padding: 18px;
    }
    
    .analysis-section {
        padding: 18px;
    }
    
    .level-section {
        padding: 18px 25px;
    }
    
    .member-icon {
        width: 55px;
        height: 17px;
    }
    
    .grade-icon {
        width: 55px;
        height: 55px;
    }
}

@media (min-width: 1200px) {
    .container, .custom-card {
        max-width: 900px;
    }
    
    .main-info {
        padding: 35px;
    }
    
    .qq-avatar {
        width: 90px;
        height: 90px;
    }
    
    .price-value {
        font-size: 40px;
    }
    
    .total-value {
        font-size: 28px;
    }
}
