* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #f5f5dc 0%, #f5f5dc 85%, rgba(139, 137, 112, 0.15) 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* 亚麻布纹理效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(139, 137, 112, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(139, 137, 112, 0.03) 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(139, 137, 112, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(139, 137, 112, 0.03) 3px
        );
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 137, 112, 0.1);
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 2.5rem;
    color: #5a5a47;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(139, 137, 112, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #7a7a67;
    font-weight: 400;
}

.control-panel {
    text-align: center;
    margin-bottom: 30px;
}

.generate-btn {
    background: linear-gradient(135deg, #8b8970 0%, #6b6950 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 137, 112, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 137, 112, 0.4);
    background: linear-gradient(135deg, #9a9880 0%, #7a7960 100%);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn svg {
    animation: rotate 0s linear;
}

.generate-btn.loading svg {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(139, 137, 112, 0.2);
    border-top-color: #8b8970;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: #7a7a67;
    font-size: 1.1rem;
}

.error-msg {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.3);
}

.hidden {
    display: none !important;
}

.data-container {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(139, 137, 112, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 137, 112, 0.1);
}

.section-title {
    font-size: 1.5rem;
    color: #5a5a47;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 137, 112, 0.2);
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-size: 0.9rem;
    color: #7a7a67;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 245, 220, 0.5);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(139, 137, 112, 0.2);
    transition: all 0.3s ease;
}

.value-wrapper:hover {
    background: rgba(245, 245, 220, 0.8);
    border-color: rgba(139, 137, 112, 0.3);
}

.value-wrapper .value {
    flex: 1;
    font-size: 1rem;
    color: #3a3a2a;
    font-weight: 500;
    word-break: break-all;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #8b8970;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(139, 137, 112, 0.15);
    color: #6b6950;
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    color: #5cb85c;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(92, 184, 92, 0.4);
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #7a7a67;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .generate-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .info-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .info-section {
        padding: 15px;
    }
}
