/* 页面英雄区域 */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 主内容区域 */
.main-content {
    padding: 30px 0;
    background-color: #f5f7fa;
    min-height: calc(100vh - 200px);
}

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

/* 卡片样式 */
.cp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.cp-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}

.header-icon svg {
    width: 24px;
    height: 24px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.cp-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cp-card-subtitle {
    font-size: 14px;
    color: #888;
    margin: 4px 0 0;
}

/* 输入区域 */
.input-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 平台选择器 */
.platform-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.platform-selector label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.platform-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-btn svg {
    width: 18px;
    height: 18px;
}

.platform-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.platform-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
    border-color: #7c3aed;
    color: #fff;
}

/* 输入组 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 16px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 48px;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: #888;
    margin-right: 12px;
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #aaa;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 48px;
}

.cp-btn svg {
    width: 18px;
    height: 18px;
}

.cp-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: #fff;
}

.cp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.cp-btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
}

.cp-btn-secondary:hover:not(:disabled) {
    background: #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cp-btn-outline {
    background: transparent;
    color: #7c3aed;
    border: 1px solid #7c3aed;
}

.cp-btn-outline:hover {
    background: #7c3aed;
    color: #fff;
}

.cp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 登录提示 */
.login-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 10px;
    font-weight: 600;
    border: 1px dashed #ef4444;
}

.login-prompt svg {
    width: 18px;
    height: 18px;
}

/* 消息提示 */
.cp-message-box {
    margin: 0 24px 24px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.cp-message-success {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
    border-left: 4px solid #48bb78;
}

.cp-message-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.cp-message-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
}

/* 结果区域 */
.results-section {
    display: none;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* 信息卡片 */
.info-card {
    padding: 0;
}

.info-card .cp-card-header {
    padding: 16px 20px;
}

/* 主播信息 */
.owner-info {
    padding: 20px;
    display: flex;
    gap: 20px;
}

.owner-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.owner-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: none;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.avatar-placeholder svg {
    width: 40px;
    height: 40px;
}

.owner-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.info-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
    text-align: left;
}

.info-value {
    color: #333;
    text-align: left;
    flex: 1;
}

.info-value-long {
    flex: 1;
    word-break: break-all;
}

.info-link {
    color: #667eea;
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

.info-value.highlight {
    color: #ef4444;
    font-weight: 600;
}

/* 直播信息 */
.live-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-live {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-offline {
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
}

/* 帮助链接 */
.help-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.help-link:hover {
    background: rgba(102, 126, 234, 0.2);
}

.help-link svg {
    width: 16px;
    height: 16px;
}

/* 直播流地址卡片 */
.stream-card {
    padding-bottom: 20px;
}

.stream-urls {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.url-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.url-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.url-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.url-tip {
    font-size: 12px;
    color: #888;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.url-content {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.url-content code {
    font-size: 13px;
    color: #666;
    word-break: break-all;
    font-family: 'Consolas', 'Monaco', monospace;
}

.copy-btn {
    min-width: 140px;
}

/* 功能说明区域 */
.info-content {
    padding: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
    border-radius: 14px;
    color: #fff;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 注意事项 */
.note-box {
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #f59e0b;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.note-header svg {
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

.note-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    margin: 0;
}

.note-box ul {
    margin: 0;
    padding-left: 20px;
}

.note-box li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.note-box li:last-child {
    margin-bottom: 0;
}

/* 加载动画 */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-hero {
        padding: 40px 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .owner-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-row {
        justify-content: center;
    }
    
    .cp-card-header {
        padding: 16px;
    }
    
    .input-section {
        padding: 16px;
    }
    
    .info-content {
        padding: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}